// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './store'
import 'babel-polyfill'
import {Pagination, Radio,RadioGroup, Checkbox,CheckboxGroup, Input, Upload, Button, Slider, Loading,Table, TableColumn, Form,  FormItem,} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import VueLazyLoad from 'vue-lazyload'
Vue.config.productionTip = false
Vue.use(VueLazyLoad ,{
  preLoad: 1.8,
  loading: require('./assets/front/online-cou-default.gif'),
  attempt: 3
})
Vue.use(Pagination);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Input);
Vue.use(Upload);
Vue.use(Button);
Vue.use(Slider);
Vue.use(Loading);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Form);
Vue.use(FormItem);
router.afterEach((to,from,next) => {
  window.scrollTo(0,0);
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
